import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']  # 解决中文乱码问题
plt.rcParams['axes.unicode_minus'] = False

area = [45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 255]
price = [300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000]

plt.figure(figsize=(8, 6))
plt.scatter(area, price, color='blue')
plt.xlabel('面积 (平方米)')
plt.ylabel('售价 (万元)')
plt.title('深圳市福田区二手房面积与售价关系散点图')
plt.grid(True)
plt.show()